/**
 * Created by haocongshun on 2016/9/9.
 */
$(function () {
    $("#loginSub").click(function () {
        var status = document.getElementsByName("status");
        var flag = false;
        var data = {};
        for(var i=0; i<status.length; i++){
            if(status[i].checked){
                data.status=status[i].value;
                flag = true;
            }
        }
        if(!flag){
            alert("请选择登录身份！");
            return;
        }
        $("#formlogin").submit();
    });
});
